<?php
	session_start();
	include ("../includes/conn.php");

	extract($_REQUEST, EXTR_PREFIX_ALL|EXTR_REFS, 'v');
	if(isset($v_page)){$page=$v_page;}
	if(isset($v_alpha)){$alpha=$v_alpha;}
	$csn=$v_csn;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
<head>
<title>siRNA Lentivector ($85.00) | shRNA/RNAi Lentiviral Vector | abm Inc.</title>
<meta name="Keywords" content="premade, sirna, pre-made, rnai, lentivirus " />
<meta name="Description" content="ABM supplies a variety of different premade siRNA(shRNA) lentivirus products. You are currently viewing page <?php if(!isset($page)){$page=1;} echo $page; ?> of the letter <?php if(!isset($alpha)){$alpha='A';} echo $alpha; ?> gene siRNA lentiviruses." />
<link rel="shortcut icon" href="/images/logo.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/style/abmnew.css" rel="stylesheet" type="text/css" />
<link href="/style/grppage.css" rel="stylesheet" type="text/css" />
<link href="/style/abmnewhome.css" rel="stylesheet" type="text/css" />
<script src="../style/environment.js" type="text/javascript"></script>

<script type="text/javascript">
	function changeoption (){
		var grp = document.getElementById('srchby').value;
		if (grp == "1"){
			//document.getElementById('keywords').defaultValue = "search by product name";
			document.getElementById('keywords').value = "search by product name";
		}
		if (grp == "2"){
			//document.getElementById('keywords').defaultValue = "search by gene name (i.e. 'abca1')";
			document.getElementById('keywords').value = "search by gene name (i.e. 'abca1')";
		}
		if (grp == "3"){
			//document.getElementById('keywords').defaultValue = "search by catalogue number";
			document.getElementById('keywords').value = "search by catalogue number";
		}
		if (grp == "5"){
			//document.getElementById('keywords').defaultValue = "search by miRNA name (i.e. 'let-7a')";
			document.getElementById('keywords').value = "search by miRNA name (i.e. 'let-7a')";
		}
		document.getElementById('keywords').style.fontFamily = 'arial,sans-serif,helvetica';
		document.getElementById('keywords').style.fontSize = '13px';
		document.getElementById('keywords').style.letterSpacing = '-0.5px';
		document.getElementById('keywords').style.color= '#F90';
		document.getElementById('keywords').size = '58';
	}
	
	function restoreback (){
		document.getElementById('keywords').style.color= '#F90';
		document.getElementById('keywords').style.fontSize = '13px';
		document.getElementById('keywords').style.fontFamily = 'arial,sans-serif,helvetica';
		document.getElementById('keywords').style.letterSpacing = '-0.5px';
		document.getElementById('keywords').value = document.getElementById('keywords').defaultValue;
	}
	
	function change_value (){
		document.getElementById('keywords').value = ""; 
		document.getElementById('keywords').style.fontSize = '13px';
		document.getElementById('keywords').style.color='#000000';
		document.getElementById('keywords').style.letterSpacing = '-0.5px';
		document.getElementById('keywords').size = '58';
		document.getElementById('keywords').style.fontFamily = 'arial,sans-serif,helvetica';
	}
</script>
<style type="text/css">
body {
	background-color:#FFF;
}
#foot {
	width:740px;
	border-top:1px solid #CCC;
	padding-top:5px;
	text-align:center;
}
#content{
	border:0px;
}
#submenu {
	background:url(/premadeSiRNA/images/sirna-banner.jpg) right top;
	background-repeat:no-repeat;
	margin:25px 100px 0px 100px;
}
#subtitle {
	font-size:26px;
}
</style>

</head>
<body>
<?php include("../includes/header-homepage.php");?>
<div id='content'>
  <div id='backbutton' style="margin:5px 100px 0px 100px; text-align:left; font-size:12px;" itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">
    <span itemprop="title">
        <a href='/' title='home page' itemprop="url">Home</a>&nbsp;&raquo;&nbsp;
    </span>
  </div>
  <div id='backbutton' itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">
    <span itemprop="title"><a href='#' title='siRNA/shRNA/RNAi Lentivector' itemprop="url">siRNA Lentivector</a></span>
    <a href='/' style="margin-right:80px;"><img src="/Antibody/images/arrow.png" width="5" height="10" border="0" alt="Home Page" /> Back</a>
  </div>

      <div id='submenu' style="margin-top:0px;">
        <div id='subtitle'>siRNA/shRNA/RNAi Lentivector</div>
      </div>
</div>
<div id='grp_title'>siRNA/shRNA/RNAi Lentivector <span style="font-size:11px; color:#990">(grouped by gene name)</span></div>
<div id="grp_gene">[
  <?php
		if (!isset($alpha)){
			$alpha="A";
			$alphab=$alpha;
		}else{
			if (substr($alpha,-1)==";"){
				$alpha="&#".$alpha;
				$alphab=str_replace("&amp;#","",htmlspecialchars($alpha));
			}else{
				$alphab=$alpha;
			}
		}
		
		$alphabet=array (1=>'α',2=>'β',3=>'γ',4=>'δ',5=>'ε',6=>'ζ',7=>'η',8=>'θ',9=>'ι',10=>'κ',11=>'λ',
						 12=>'μ',13=>'ν',14=>'ξ',15=>'ο',16=>'π',17=>'ρ',18=>'ς',19=>'σ',20=>'τ',21=>'υ',
						 22=>'φ',23=>'χ',24=>'ψ',
						 25=>'0',26=>'1',27=>'2',28=>'3',29=>'4',30=>'5',31=>'6',32=>'7',33=>'8',34=>'9',
						 35=>'A',36=>'B',37=>'C',38=>'D',39=>'E',40=>'F',41=>'G',42=>'H',43=>'I',44=>'J',
						 45=>'K',46=>'L',47=>'M',48=>'N',49=>'O',50=>'P',51=>'Q',52=>'R',53=>'S',54=>'T',
						 55=>'U',56=>'V',57=>'W',58=>'X',59=>'Y',60=>'Z');
		
		foreach ($alphabet as $i=>$value){
			$char_exist="select subcat.sname from subcat,chdcat where (chdcat.ssn=subcat.sn and chdcat.dname='siRNA') and sname like '".$alphabet[$i]."%'";
			$char_res=mysql_query($char_exist,$db);
			$char_rw=mysql_num_rows($char_res);
			if ($char_rw>0){
				if ($alphabet[$i]==$alpha){
					echo "<span style='font-size:20px; color:#F00; font-weight:bold;'>".$alphabet[$i]."</span>&nbsp;";
				}else{
					echo "<a href='/siRNA-shRNA-RNAi-Lentivectors-Lentiviruses-".str_replace("&amp;#","",htmlspecialchars($alphabet[$i])).".html' title='".$alphabet[$i]." Gene Names siRNA/shRNA/RNAi Lentivectors'>".$alphabet[$i]."</a>&nbsp;";
				}
			}
		}
		
		echo "]";
	?>
</div>
<div id='grp_home'>
  <div id='grp_list'>
    <?php
		$limits=32;
		if(!isset($page)){
		   $page = 1;
		} 
		
		if (isset($alpha)){
			$srchmax="select subcat.sname,subcat.sn from subcat,chdcat where (chdcat.ssn=subcat.sn and chdcat.dname='siRNA') and sname like '".$alpha."%' order by sname";
			$srch="select subcat.sname,subcat.sn from subcat,chdcat where (chdcat.ssn=subcat.sn and chdcat.dname='siRNA') and sname like '".$alpha."%' order by sname limit ".($page-1)*$limits.",".$limits;
		}else{
			//$alpha="A";
			$srchmax="select * from subcat where csn='$csn' and sname like 'A%' order by sname";
			$srch="select * from subcat where csn='$csn' and sname like 'A%' order by sname limit ".($page-1)*$limits.",".$limits;
		}
		
		//--------------------------------
		$ressmax=mysql_query($srchmax,$db);
		$rwmax=mysql_num_rows($ressmax);// $rowmax is the max number of records
		//-----------------------------------
		$ress=mysql_query($srch,$db);
		$rw=mysql_num_rows($ress);//$row is the nubmer for one page display
		//----------------------------------------
		if ($rwmax){
		   if ($rwmax<$limits){//if $rowmax<$limits, only have one page
			  $page_count = 1;
		   }
		   if ($rwmax%$limits){
			   $page_count = ceil($rwmax/$limits);
		   }else{
			   $page_count = $rwmax/$limits;
		   }
		}else{
		   $page_count = 0;
		}
	   //-----------------------------------
	   
		if ($rw>0){
			$i=1;
			echo "<div id='grp_list_1'><ul>";
			while ($rs=mysql_fetch_array($ress)){
				$sname=$rs['sname'];
				$htmlname = str_replace(" & "," AND ",$sname);
				
				$rws=$rw%2;
				if($rws<>0){$row=$rw+1;
				}else{$row=$rw;}
				$halfrw=$row/2;
				
				$ssn=$rs['sn'];
				
				if ($i<$halfrw || ($i>$halfrw && $i<$rw)){
					echo "<li><a href='/$htmlname-siRNA-Lentivector-$sname.html' title='$sname siRNA, siRNA $sname, $sname shRNA, shRNA $sname, $sname RNAi, RNAi $sname'>$sname siRNA Lentivector</a></li>";
				}
				
				if ($i==$halfrw){
					echo "<li><a href='/$htmlname-siRNA-Lentivector-$sname.html' title='$sname siRNA, siRNA $sname, $sname shRNA, shRNA $sname, $sname RNAi, RNAi $sname'>$sname siRNA Lentivector</a></li></ul></div><div id='grp_list_2'><ul>";
				}
				
				if ($i==$rw && $rw<>1){
					echo "<li><a href='/$htmlname-siRNA-Lentivector-$sname.html' title='$sname siRNA, siRNA $sname, $sname shRNA, shRNA $sname, $sname RNAi, RNAi $sname'>$sname siRNA Lentivector</a></li></ul></div>";
				}
				
				$i++;
			}
		}
	 ?>
  </div>
</div>
<div id='grp_pages'>
<?php //page numbers
  if ($rwmax > 0){
	  $page_string = $page_string_1 = $page_string_2 = "";
	  $level = floor($page/10);
	  $num_base = $level * 10;
	  
	  $prev = $page - 1;
	  $next = $page + 1;
	  
	  if ($prev == 0 && $page_count <> 1){
		  $page_string_1 .= "";
		  $page_string_2 .= "&nbsp;&nbsp;&nbsp;&nbsp;<a href='/siRNA-shRNA-RNAi-Lentivectors-Lentiviruses-$alpha-$next.html' title='Page $next of $alpha started Gene Names siRNA/shRNA/RNAi Lentivectors'>Next</a>";
	  }elseif($next == $page_count + 1 && $page_count <> 1){
		  $page_string_1 .= "<a href='/siRNA-shRNA-RNAi-Lentivectors-Lentiviruses-$alpha-$prev.html'>Previous</a>&nbsp;&nbsp;";
		  $page_string_2 .= "";
	  }elseif($page_count <> 1){
		  $page_string_1 .= "<a href='/siRNA-shRNA-RNAi-Lentivectors-Lentiviruses-$alpha-$prev.html'>Previous</a>&nbsp;&nbsp;";
		  $page_string_2 .= "&nbsp;&nbsp;&nbsp;&nbsp;<a href='/siRNA-shRNA-RNAi-Lentivectors-Lentiviruses-$alpha-$next.html'>Next</a>";
	  }
		  
	  for($i = $num_base; $i <= $num_base + 10; $i ++){
		  if ($i <> 0){
			  if ($i <= $page_count){
				if ($i == $page){
					$page_string .= "&nbsp;&nbsp;<span style='color:#F00;font-weight:bold;'>$i</span>";
				}else{
					$page_string .= "&nbsp;&nbsp;<a href='/siRNA-shRNA-RNAi-Lentivectors-Lentiviruses-$alpha-$i.html'>$i</a>";
				}
			  }
		  }
	  }
	  
	  $page_string = $page_string_1.$page_string.$page_string_2;
	
	//-----------------------------
	echo $page_string;
  }

?>
</div>
<?php include ("../includes/footer.php");?>

<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://www.abmgood.com/piwik/" : "http://www.abmgood.com/piwik/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://abmgood.com/piwik/piwik.php?idsite=1" style="border:0" alt=""/></p></noscript>
<!-- End Piwik Tag -->
</body>
</html>

